<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>动态组件--v-once</title>
  <script src="https://cdn.bootcss.com/vue/2.4.2/vue.min.js"></script>
</head>
<body>
<div id="vue_det">
  <!--<component :is="child_1"></component>-->
  <child_1></child_1>
</div>
<script type="text/javascript">

  Vue.component('child_1',{
    template:`
        <div>
            11111
        </div>
    `
  })
  Vue.component('child_2',{
    template:`
        <div>
            22222
        </div>
    `
  })
  var vm = new Vue({
    el: '#vue_det'
  })
</script>
</body>
</html>
